'''
This file controls what views a user sees when they type in certain urls on the website
You can do regex here
'''

from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Tells the server to call "about" from views.py when the user visits /about/  
    url(r'^about/$', 'pinnit.posts.views.about', name='about'),
    url(r'^', 'pinnit.posts.views.home', name='home'),
    (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'settings.STATIC_URL'}),
    

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
